
import { Navigate, createBrowserRouter } from 'react-router-dom'
//荆江涛
import App from "../App";
import Home from "../jjt/Home";
import Classfy from "../jjt/Classfy";
import Search from "../jjt/Search";
import Map from "../jjt/Map";
import Map2 from "../jjt/Map2";
//赵俊杰
import Welcome from '../components/zjj/Welcome'
import Login from '../components/zjj/Login'
import Register from '../components/zjj/Register'
import Advise from '../components/zjj/Advise'
import LoginY from '../components/zjj/LoginY'
import LoginR from '../components/zjj/LoginR'
import Hot from '../components/zjj/Hot'
import Edtions from '../components/zjj/Edtions'
import Forget from '../components/zjj/Forget'

//刘文立
import Shopcar from "../components/Shopcar";
import Payover from '../components/Payover';
import Bookdetail from "../components/Bookdetail";
import Cell from "../components/Cell";

//吕思静
import Merch3 from "../lsj/Merch3"; //商家主页
import Sale3 from "../lsj/Sale3"; //商品在售
import Sellbook3 from "../lsj/Sellbook3"; //卖书
import News3 from "../lsj/News3"; //商品信息
import Issue3 from "../lsj/Issue3"; //发布信息
import Success3 from "../lsj/Success3"; //发布成功
import Message from "../lsj/Message.jsx";
import Dialogue from "../lsj/Dialogue"; //对话
import Exchange from "../lsj/Exchange.jsx";
let router = createBrowserRouter([
  {
    path: '/',
    element:<App/>,
    children: [
        {
            path: '/welcome',
            element: <Welcome />
        }, {
            path: '/login',
            element: <Login />
        },{
            path: '/loginY',
            element: <LoginY />
        },{
            path: '/loginR',
            element: <LoginR />
        }, {
            path: '/register',
            element: <Register />
        }, {
            path: '/advise',
            element: <Advise />
        },{
            path: '/hot',
            element: <Hot />
        }, {
            path: '/',
            element:<Navigate to='/welcome'/>
        }, {
            path: '/edtions',
            element:<Edtions/>
        }, {
            path: '/forget',
            element:<Forget/>
        },
        {
            path: "/issue3",
            element: <Issue3 />
        },
        {
            path: "/merch3",
            element: <Merch3 />
        },

        {
            path: "/news3",
            element: <News3 />
        },
        {
            path: "/sale3",
            element: <Sale3 />
        },
        {
            path: "/sellbook3",
            element: <Sellbook3 />
        },
        {
            path: "/success3",
            element: <Success3 />
        },
        // {
        //     path: "/",
        //     element: <Navigate to="/news3" />
        // },
        
        {
            path: "/message",
            element: <Message />
        },
        {
            path: "/dialogue",
            element: <Dialogue />
        },
        {
            path: "/exchange",
            element: <Exchange />
        },
    ]
}, 
  {
    path: "/jjthome",
    element: <Home />,
  },
  {
    path: "/jjtclassfy",
    element: <Classfy />,
  },
  {
    path: "/jjtsearch",
    element: <Search />,
  },
  {
    path: "/jjtmap",
    element: <Map />,
  },
  {
    path: "/jjtmap2",
    element: <Map2 />,
  },
  //刘文立
  {
    path:'/detail',
    element:<Bookdetail/>
},
{
    path:'/shopcar',
    element:<Shopcar/>
},
{
    path:'/cell',
    element:<Cell/>
},
{
    path:'/payover',
    element:<Payover/>
}
]);
export default router


